package cn.edu.ctbu.bootstraptablepage.repository;

import cn.edu.ctbu.bootstraptablepage.domain.Student;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface StudentRepository extends JpaRepository<Student, Integer> {
    Page<Student> findByName(String name, Pageable pageable);
    Page<Student> findByNo(String no, Pageable pageable);
    Page<Student> findById(Integer id, Pageable pageable);
}
